package com.syc.legou.dataImport;


import org.apache.solr.client.solrj.SolrClient;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.data.solr.core.SolrTemplate;

@SpringBootApplication
@MapperScan("com.syc.legou.dataImport.mapper")
@ComponentScan(basePackages = {"com.syc"})
public class DataImportApplication {
    public static void main(String[] args) {
        SpringApplication.run(DataImportApplication.class, args);
    }

    @Bean
    public SolrTemplate solrTemplate(SolrClient solrClient) {
        return new SolrTemplate(solrClient);
    }
}
